|
Cytosim
PI
Cytoskeleton Simulator
|
Cytosim is written in C++ and it is necessary to recompile the program after each modification of the source code.
This can be done from a command-line terminal, with a program called make, if you have a C++ standard compiler: e.g. gcc, Clang or the Intel compiler.
On Mac OS X, the easiest is to install Xcode, which is available on the Mac App Store. One need to install the Xcode 'Command-Line Tools', which is an optional package.
After installing the compiler and make, you need to edit the file makefile.inc to set the Compile Options options for your particular platform.
You can then compile with the following instructions:
sim and play require two mathematical libraries:
The reference implementations are public. However, since these libraries are coded in Fortran, you will need a Fortran compiler.
Precompiled libraries are also included in Intel MKL and Apple's vecLib .
These libraries are bundled with MacOSX and you simply need to specify:
Recent Linux distributions provide BLAS/LAPACK as an optional installation.
For troubleshooting, it can be helpful to compile the test programs to check the libraries:
play relies on OpenGL for display and uses POSIX threads.
Interactivity is provided by GLUT, which can be replaced by freeGLUT. The OpenGL Utility Library (GLU) is also used, but it comes usually bundled with GLUT.
GLUT and OpenGL are included in Mac OSX:
If compilation fails, it can be helpful to compile the test programs:
Cytosim can use the mouse wheel to zoom in and out:
This requires freeglut, or Renaud Blanch's GLUT patch on mac osx.
src/math/dim.h src/base/assert_macro.h src/math/real.h makefile.inc. This file should be in the root of the distribution.Select the machine on which you want to compile: debug is the best, but to run extensive calculations, you should:fast makefile.inc: makefile.inc: